﻿<table class="display dataTable">
    <thead>
        <tr role="row">
            <th>Tên loại</th>
            <th>Số lượng</th>
            <th>Mã loại</th>
            <th>Quản lý</th>
        </tr>
    </thead>
    <tbody role="alert" aria-live="polite" aria-relevant="all">
        @{foreach (var LKS in ViewBag.LKS)
          {
            <tr class="odd">
                <td>
                    <div class="nonDisplay" id="nameL@{@LKS.maLoaiPhong}">
                        <input type="text" class="tenLoaiPhong L@{@LKS.maLoaiPhong}" value="@LKS.tenLoaiPhong"/>
                    </div>
                    <div id="nameLL@{@LKS.maLoaiPhong}">@LKS.tenLoaiPhong</div>
                </td>
                <td>
                    <div class="nonDisplay" id="soluongL@{@LKS.maLoaiPhong}">
                        <input type="text" class="tenLoaiPhong soL@{@LKS.maLoaiPhong}" value="@LKS.soLuong"/>
                    </div>
                    <div id="soluongLL@{@LKS.maLoaiPhong}">@LKS.soLuong</div>
                </td>
                <td>
                    <div class="nonDisplay">
                        <input type="text" class="maLoaiPhong" value="@LKS.maLoaiPhong"/>
                    </div>@LKS.maLoaiPhong</td>
                <td>
                    <div>
                        <img class="editL" id="@LKS.maLoaiPhong" src="../Images/icon_edit.png">
                        <img class="deleteL" id="@LKS.maLoaiPhong" src="../Images/icon_delete.png">
                        <img class="save_editL nonDisplay" id="@LKS.maLoaiPhong" src="../Images/checkmark2.png">
                        <img class="cancel_editL nonDisplay" id="@LKS.maLoaiPhong" src="../Images/cross.png">
                    </div>
                </td>
            </tr>
          }
        }
    </tbody>
</table>
